package com.th.system.service.impl;

import java.util.List;
import com.th.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.th.system.mapper.UsWalletTransactionMapper;
import com.th.system.domain.UsWalletTransaction;
import com.th.system.service.IUsWalletTransactionService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-06-27
 */
@Service
public class UsWalletTransactionServiceImpl implements IUsWalletTransactionService
{
    @Autowired
    private UsWalletTransactionMapper usWalletTransactionMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public UsWalletTransaction selectUsWalletTransactionById(Long id)
    {
        return usWalletTransactionMapper.selectUsWalletTransactionById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param usWalletTransaction 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<UsWalletTransaction> selectUsWalletTransactionList(UsWalletTransaction usWalletTransaction)
    {
        return usWalletTransactionMapper.selectUsWalletTransactionList(usWalletTransaction);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param usWalletTransaction 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertUsWalletTransaction(UsWalletTransaction usWalletTransaction)
    {
        usWalletTransaction.setCreateTime(DateUtils.getNowDate());
        return usWalletTransactionMapper.insertUsWalletTransaction(usWalletTransaction);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param usWalletTransaction 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateUsWalletTransaction(UsWalletTransaction usWalletTransaction)
    {
        return usWalletTransactionMapper.updateUsWalletTransaction(usWalletTransaction);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteUsWalletTransactionByIds(Long[] ids)
    {
        return usWalletTransactionMapper.deleteUsWalletTransactionByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteUsWalletTransactionById(Long id)
    {
        return usWalletTransactionMapper.deleteUsWalletTransactionById(id);
    }
}
